/*
 * Copyright © 2023
 * @Author: zhangxiang
 * @Date: 2023-09-21 15:38:20
 * @LastEditors: zhangxiang
 * @LastEditTime: 2023-09-27 09:22:48
 * @Description:
 *
 */

import Layout from '@/layout'

/**
 * @description: 调度引擎路由
 * @return {*}
 */
const schedulingEngineRouter = {
  path: '/scheduling-engine', // 根路径
  component: Layout,
  redirect: '/scheduling-engine/index', // 重定向
  name: 'SchedulingEngine', // 名称
  alwaysShow: true,
  meta: {
    title: '算力模型定义', // 标题
    menuNameKey: 'SchedulingEngine',
    icon: 'scheduling-engine' // icon
  },
  children: [
    {
      path: 'index', // 路径
      name: 'SchedulingEngineIndex', // 路由跳转name
      component: () => import('@/views/scheduling-engine/basic'),
      meta: {
        title: '算力基础模型',
        icon: '',
        menuNameKey: 'SchedulingEngineIndex',
        menuKey: 'SchedulingEngineIndex'
      }
    },
    {
      path: 'measure', // 路径
      name: 'SchedulingEngineMeasure', // 路由跳转name
      component: () => import('@/views/scheduling-engine/measure'),
      meta: {
        title: '算力度量子模型',
        icon: '',
        menuNameKey: 'SchedulingEngineMeasure',
        menuKey: 'SchedulingEngineMeasure'
      }
    },
    {
      path: 'flavor', // 路径
      name: 'SchedulingEngineFlavor', // 路由跳转name
      component: () => import('@/views/scheduling-engine/flavor/index2'),
      meta: {
        title: '云商规格清单',
        icon: '',
        menuNameKey: 'SchedulingEngineFlavor',
        menuKey: 'SchedulingEngineFlavor'
      }
    }
  ]
}

export default schedulingEngineRouter
